// pages/login/login.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    name:'',
    password:''
    
  },
  inputName:function(e){

    this.setData({
      id:e.detail.value
    })
  },
  inputPassword:function(e){

    this.setData({
        password:e.detail.value
    })
  },

  onlogin:function(e){    
    wx.switchTab({
      url: '/pages/car/car',
      success:(res)=>{},
      fail:(res)=>{},
      complete:(res)=>{},
    
    })
  },

  goMe:function(){
    wx.navigateTo({
      url: '/pages/sign/sign',
    })
  },
  onLoad: function (options) {
    console.log(options);
    var id = options.id;
    console.log(id);

  },

})